package com.hao.study.service;

import com.github.pagehelper.PageInfo;
import com.hao.study.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Administrator
* @description 针对表【b_comment】的数据库操作Service
* @createDate 2024-06-12 13:46:44
*/
public interface CommentService extends IService<Comment> {

    PageInfo<Comment> getCommentList(Integer pageNum, Integer pageSize);

    void createComment(Comment comment);

    void deleteComment(String id);

    void updateComment(Comment comment);

    Comment getCommentDetail(String id);

    PageInfo<Comment> getThingCommentList(Integer pageNum, Integer pageSize, String thingId, String order);

    PageInfo<Comment> getUserCommentList(Integer pageNum, Integer pageSize, String userId);
}
